﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HCQ2_Model.Pay;

namespace HCQ2_Model.ShoppingCart
{
    /// <summary>
    /// 选中购买的文件信息展示
    /// </summary>
    public class ShoppingCartListModel:ISupplyType
    {
        /// <summary>
        /// 文件ID
        /// </summary>
        public int FileId { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 产品类别
        /// </summary>
        public string ProType { get; set; }
        /// <summary>
        /// 格式
        /// </summary>
        public string ProForm { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 文件略缩图
        /// </summary>
        public string FileImgUrl { get; set; }
        /// <summary>
        /// 是否自营商品；0个人、1自营
        /// </summary>
        public int? SupplyType { get; set; }
        /// <summary>
        /// 期限最低价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 文件各个期限的价格
        /// </summary>
        public List<ShoppingCartFileMoney> FileMoneys { get; set; }
    }

    /// <summary>
    /// 文件各个期限的价格
    /// </summary>
    public class ShoppingCartFileMoney
    {

        /// <summary>
        /// 文件ID
        /// </summary>
        public int FileId { get; set; }
        /// <summary>
        /// 月份
        /// </summary>
        public int Month { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
    }
}
